import { useState } from 'react'

function useToggle(defaultVisible: boolean) {
  const [visible, setVisible] = useState(defaultVisible)
  return { visible, setVisible }
}

export default useToggle
